home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / pcr / pcr4_4.lha / DIST / threads / UnixSysCallTranslation.s < prev    next >
Text File  |  1989-03-27  |  641b  |  26 lines

  1. !
  2. ! UnixSysCallTranslation.s
  3. !
  4. ! Demers, March 27, 1989 4:32:08 pm PST
  5. !
  6. ! A collection of stubs that translate Unix system calls
  7. !   to equivalent PCR calls by inserting a jmp instruction.
  8. !
  9. ! Input in UnixSysCallTranslation.h is a sequence of invocations
  10. !   of the macro XR_SYSCALL(pcrName,uName) defined below.
  11. !
  12. ! Of course UnixSysCallTranslation.h should be constructed mechanically
  13. !   from UIO.h.
  14. !
  15.  
  16. #define XR_SYSCALL(pcrName,uName) ; \
  17.     .seg "text" ; \
  18.     .global _XR_/**/pcrName ; \
  19.     .global _/**/uName ; \
  20. _/**/uName: sethi %hi(_XR_/**/pcrName),%g1 ; \
  21.     jmp %g1+%lo(_XR_/**/pcrName) ; \
  22.     nop
  23.     
  24. #include "UnixSysCallTranslation.h"
  25.  
  26.